package com.cn.pretty.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TokenController {

	@RequestMapping(value = "/tokens", method = RequestMethod.GET)
	public @ResponseBody String defult( final HttpServletRequest request, final HttpServletResponse response ){
		
		final String signature = request.getParameter( "signature" );
		final String timestamp = request.getParameter( "timestamp" );
		final String nonce = request.getParameter( "nonce" );
		final String echostr = request.getParameter( "echostr" );
		
		return echostr;
	}
}
